HOME |  BACK |  NEXT |  _  WORDLIST |  TOPICS |  _  AUTHORS |  E-MAIL |  _  INDEX | -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

WWWE Logo grep

The acronym grep is a standard UNIX search command that stands for "general regular expression parser." It allows users to search files for particular patterns, including so-called regular expressions which can utilize various substitutions and wildcards to provide powerful search-and-replace operations within files.

Grep is also a UNIX command that stands for "get regular expression print." Grep searches for a particular string and prints the lines containing those characters to the screen. A somewhat similar command, more, prints a complete file a screen at a time.

URLs:

Quick Guide to UNIX commands #2

Detail:

The normal format for grep is:

grep (options) expression filename (filename2 filename3 ....)

Some of these options are:

Like all UNIX commands, it is case sensitive.

Type "man grep" at a UNIX prompt to obtain the reference manual entry on the grep command with a complete list of command options.

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

E-Mail: The World Wide Web Encyclopedia at wwwe@tab.com
E-Mail: Charles River Media at chrivmedia@aol.com
Copyright 1996 Charles River Media. All rights reserved.
Text - Copyright © 1995, 1996 - James Michael Stewart & Ed Tittel.
Web Layout - Copyright © 1995, 1996 - LANWrights & IMPACT Online.
Revised -- February 20th, 1996